package com.yumingjaing.callbackmode;

import lombok.extern.slf4j.Slf4j;

/**
 * @title: TestCallBackMode
 * @description:
 * @author: John
 * @version: TestCallBackMode.java, v1.0 2025年06月15日 22:49
 */
@Slf4j
public class TestCallBackMode {
    public static void main(String[] args) {

        new BizTemplate().execute(new CallBack() {
            @Override
            public void preHandle() {
                log.info("preHandle");
            }

            @Override
            public void coreLogic() {
                log.info("coreLogic");
            }

            @Override
            public void postHandle() {
                log.info("postHandle");
            }
        });
    }
}